package com.myblog.service;

import com.myblog.model.ArticleLikes;
import com.myblog.model.CommentLikes;
import com.myblog.model.LeaveLikes;
import com.myblog.utils.DataMap;

import javax.servlet.http.HttpServletRequest;

public interface LikeService {

    DataMap getArticleLikesByPage(Integer rows, Integer pageNum);

    DataMap setAllLikesIsRead();

    boolean isLike(long parseLong, String userName);

    DataMap updateLikeByArticleId(long parseLong);

    void insertArticleLikesRecords(ArticleLikes likeOfArticle);

    boolean leaveIsLike(String pageName,Integer leaveId, String userName);

    DataMap updateLeaveLike(Integer leaveId);

    void insertLeaveLikesRecords(LeaveLikes likeOfLeave);

    boolean commentIsLike(long articleId, Integer commentId, String userName);

    DataMap updateCommentLike(Integer commentId);

    void insertCommentLikesRecords(CommentLikes likeOfComment);
}
